package edu.whu.webgis.controller;

import edu.whu.webgis.entity.Collection;
import edu.whu.webgis.service.ICollectionService;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/collection")
public class CollectionController {
    @Autowired
    ICollectionService service;

    @PostMapping("/insert")
    public Boolean insertCollection(@RequestBody Collection collection){
        return service.InsertCollection(collection);
    }
}
